#!/bin/bash - 
#===============================================================================
#
#          FILE: groupsend_plot.sh
# 
#         USAGE: ./groupsend_plot.sh 
# 
#   DESCRIPTION: 
# 
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: YOUR NAME (), 
#  ORGANIZATION: 
#       CREATED: 03.05.2013 12.26.46 EEST
#      REVISION:  ---
#===============================================================================

set -o nounset                              # Treat unset variables as an error
echo 'set terminal epslatex color colortext
  set output "bwm_on_inaf.tex"
  set ylabel "Network receive speed (Mb/s)"
  set xlabel "Time(s)"
  set key right bottom
  set xrange [0:30]
   plot "data/bwm_inaf_2streams_gnuplot" u ($1-1371748116):(($4*8)/(1024*1024)) title "2 streams"  w l, \
   "data/bwm_inaf_4streams_gnuplot" u ($1-1371748206):(($4*8)/(1024*1024)) title "4 streams"  w l, \
   "data/bwm_inaf_8streams_gnuplot" u ($1-1371748264):(($4*8)/(1024*1024)) title "8 streams"  w l, \
   "data/bwm_inaf_16streams_gnuplot" u ($1-1371748314):(($4*8)/(1024*1024)) title "16 streams"  w l, \
   "data/bwm_inaf_64streams_gnuplot" u ($1-1371748378):(($4*8)/(1024*1024)) title "64 streams"  w l ' | gnuplot -persist

